home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / tcshsrc.zoo / tcsh / tc.decls.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-25  |  7.7 KB  |  246 lines

  1. /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.decls.h,v 3.4 1991/08/05 23:02:13 christos Exp $ */
  2. /*
  3.  * tc.decls.h: Function declarations from all the tcsh modules
  4.  */
  5. /*-
  6.  * Copyright (c) 1980, 1991 The Regents of the University of California.
  7.  * All rights reserved.
  8.  *
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions
  11.  * are met:
  12.  * 1. Redistributions of source code must retain the above copyright
  13.  *    notice, this list of conditions and the following disclaimer.
  14.  * 2. Redistributions in binary form must reproduce the above copyright
  15.  *    notice, this list of conditions and the following disclaimer in the
  16.  *    documentation and/or other materials provided with the distribution.
  17.  * 3. All advertising materials mentioning features or use of this software
  18.  *    must display the following acknowledgement:
  19.  *    This product includes software developed by the University of
  20.  *    California, Berkeley and its contributors.
  21.  * 4. Neither the name of the University nor the names of its contributors
  22.  *    may be used to endorse or promote products derived from this software
  23.  *    without specific prior written permission.
  24.  *
  25.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  26.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  29.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35.  * SUCH DAMAGE.
  36.  */
  37. #ifndef _h_tc_decls
  38. #define _h_tc_decls
  39.  
  40. /*
  41.  * tc.alloc.c
  42.  */
  43. #ifndef SYSMALLOC
  44. extern    void          free        __P((ptr_t));
  45. extern    memalign_t      malloc    __P((size_t));
  46. extern    memalign_t      realloc    __P((ptr_t, size_t));
  47. extern    memalign_t      calloc    __P((size_t, size_t));
  48.  
  49. #else /* SYSMALLOC */
  50. extern    void          Free        __P((ptr_t));
  51. extern    memalign_t      Malloc    __P((size_t));
  52. extern    memalign_t      Realloc    __P((ptr_t, size_t));
  53. extern    memalign_t      Calloc    __P((size_t, size_t));
  54. #endif /* SYSMALLOC */
  55. extern    void          showall    __P((Char **, struct command *));
  56.  
  57. /*
  58.  * tc.bind.c
  59.  */
  60. extern    void          dobindkey    __P((Char **, struct command *));
  61. extern    int          parseescape    __P((Char **));
  62. extern    unsigned char    *unparsestring    __P((Char *, unsigned char *));
  63. extern    void          dobind    __P((Char **, struct command *));
  64.  
  65.  
  66. /*
  67.  * tc.disc.c
  68.  */
  69. extern    int          setdisc    __P((int));
  70. extern    int          resetdisc    __P((int));
  71.  
  72. /*
  73.  * tc.func.c
  74.  */
  75. extern    Char         *expand_lex    __P((Char *, int, struct wordent *, 
  76.                          int, int));
  77. extern    Char         *sprlex    __P((Char *, struct wordent *));
  78. extern    void          Itoa        __P((int, Char *));
  79. extern    void          dolist    __P((Char **, struct command *));
  80. extern    void          dotelltc    __P((Char **, struct command *));
  81. extern    void          doechotc    __P((Char **, struct command *));
  82. extern    void          dosettc    __P((Char **, struct command *));
  83. extern    void          dowhich    __P((Char **, struct command *));
  84. extern    struct process     *find_stop_ed    __P((void));
  85. extern    void          fg_proc_entry    __P((struct process *));
  86. extern    sigret_t      alrmcatch    __P((int));
  87. extern    void          precmd    __P((void));
  88. extern    void          cwd_cmd    __P((void));
  89. extern    void          beep_cmd    __P((void));
  90. extern    void          period_cmd    __P((void));
  91. extern    void          aliasrun    __P((int, Char *, Char *));
  92. extern    void          setalarm    __P((void));
  93. extern    void          rmstar    __P((struct wordent *));
  94. extern    void          continue_jobs    __P((struct wordent *));
  95. extern    Char         *gettilde    __P((Char *));
  96. extern    Char         *getusername    __P((Char **));
  97. extern    void          doaliases    __P((Char **, struct command *));
  98.  
  99.  
  100. /*
  101.  * tc.os.c
  102.  */
  103. #ifdef MACH
  104. extern    void          dosetpath    __P((Char **, struct command *));
  105. #endif
  106. #ifdef TCF
  107. extern    void          dogetxvers    __P((Char **, struct command *));
  108. extern    void          dosetxvers    __P((Char **, struct command *));
  109. extern    void          dogetspath    __P((Char **, struct command *));
  110. extern    void          dosetspath    __P((Char **, struct command *));
  111. extern    char         *sitename    __P((pid_t));
  112. extern    void          domigrate    __P((Char **, struct command *));
  113. #endif
  114. #ifdef WARP
  115. extern    void           dowarp    __P((Char **, struct command *));
  116. #endif
  117. #ifdef masscomp
  118. extern    void          douniverse    __P((Char **, struct command *));
  119. #endif
  120. #ifdef _SEQUENT_
  121. extern    void           pr_stat_sub    __P((struct process_stats *, 
  122.                          struct process_stats *, 
  123.                          struct process_stats *));
  124. #endif
  125. #ifdef NEEDtcgetpgrp
  126. extern    int           xtcgetpgrp    __P((int));
  127. #define tcgetpgrp(a) xtcgetpgrp(a)
  128. #endif
  129. #ifdef YPBUGS
  130. extern    void           fix_yp_bugs    __P((void));
  131. #endif
  132. extern    void           osinit    __P((void));
  133. #ifdef NEEDgetwd
  134. extern    char         *xgetwd    __P((char *));
  135. #define getwd(a) xgetwd(a)
  136. #endif
  137. #ifdef NEEDgethostname
  138. extern    int           gethostname    __P((char *, int));
  139. #define gethostname(a, b) xgethostname(a, b)
  140. #endif
  141. #ifdef iconuxv
  142. extern    int          vfork        __P((void));
  143. #endif
  144. #ifdef apollo
  145. extern    void          doinlib    __P((Char **, struct command *));
  146. extern    void          dover        __P((Char **, struct command *));
  147. extern    void          dorootnode    __P((Char **, struct command *));
  148. extern    int          getv        __P((Char *));
  149. #endif
  150.  
  151.  
  152. /*
  153.  * tc.printf.h
  154.  */
  155. extern    void          xprintf    __P((char *, ...));
  156. extern    void          xsprintf    __P((char *, char *, ...));
  157. extern    void          xvprintf    __P((char *, va_list));
  158. extern    void          xvsprintf    __P((char *, char *, va_list));
  159.  
  160. /*
  161.  * tc.prompt.c
  162.  */
  163. extern    void          printprompt    __P((int, Char *));
  164.  
  165. /*
  166.  * tc.sched.c
  167.  */
  168. extern    time_t          sched_next    __P((void));
  169. extern    void          dosched    __P((Char **, struct command *));
  170. extern    void          sched_run    __P((void));
  171.  
  172. /*
  173.  * tc.sig.c
  174.  */
  175. #ifndef BSDSIGS
  176. # if SVID < 3 || defined(UNIXPC)
  177. extern    sigret_t    (*sigset    __P((int, sigret_t (*)(int)))) ();
  178. extern    void          sigrelse    __P((int));
  179. extern    void          sighold    __P((int));
  180. extern    void          sigignore    __P((int));
  181. extern    void           sigpause    __P((int));
  182. # endif
  183. # ifdef SXA
  184. extern    void           sigpause    __P((int));
  185. # endif
  186. extern    pid_t           ourwait    __P((int *));
  187. #endif
  188. #ifdef NEEDsignal
  189. extern    sigret_t    (*xsignal    __P((int, sigret_t (*)(int)))) ();
  190. #define signal(a, b)      xsignal(a, b)
  191. #endif
  192. #ifdef _SEQUENT_
  193. extern    sigmask_t      sigsetmask    __P((sigmask_t));
  194. extern    sigmask_t      sigblock    __P((sigmask_t));
  195. extern    void          bsd_sigpause    __P((sigmask_t));
  196. #endif
  197. #ifdef SIGSYNCH
  198. extern    sigret_t      synch_handler    __P((int));
  199. #endif
  200.  
  201.  
  202.  
  203.  
  204. /*
  205.  * tc.str.c:
  206.  */
  207. #ifdef SHORT_STRINGS
  208. extern    Char         *s_strchr    __P((Char *, int));
  209. extern    Char         *s_strrchr    __P((Char *, int));
  210. extern    Char         *s_strcat    __P((Char *, Char *));
  211. #ifdef NOTUSED
  212. extern    Char         *s_strncat    __P((Char *, Char *, size_t));
  213. #endif
  214. extern    Char         *s_strcpy    __P((Char *, Char *));
  215. extern    Char         *s_strncpy    __P((Char *, Char *, size_t));
  216. extern    Char         *s_strspl    __P((Char *, Char *));
  217. extern    size_t          s_strlen    __P((Char *));
  218. extern    int          s_strcmp    __P((Char *, Char *));
  219. extern    int          s_strncmp    __P((Char *, Char *, size_t));
  220. extern    Char         *s_strsave    __P((Char *));
  221. extern    Char         *s_strend    __P((Char *));
  222. extern    Char         *s_strstr    __P((Char *, Char *));
  223. extern    Char         *str2short    __P((char *));
  224. extern    Char        **blk2short    __P((char **));
  225. extern    char         *short2str    __P((Char *));
  226. extern    char        **short2blk    __P((Char **));
  227. #endif
  228. extern    char         *short2qstr    __P((Char *));
  229.  
  230.  
  231. /*
  232.  * tc.vers.h:
  233.  */
  234. extern    void          fix_version    __P((void));
  235. extern    Char         *gethosttype    __P((void));
  236.  
  237. /*
  238.  * tc.who.c
  239.  */
  240. extern    void          initwatch    __P((void));
  241. extern    void          resetwatch    __P((void));
  242. extern    void          watch_login    __P((void));
  243. extern    void          dolog        __P((Char **, struct command *));
  244.  
  245. #endif                /* _h_tc_decls */
  246.